import request from '@/utils/request'

// 查询查看案卷信息列表
export function listAnjuan(query) {
  return request({
    url: '/system/shiti_anjuan/list',
    method: 'get',
    params: query
  })
}

// 上报数据页面查询查看案卷信息列表
export function listReport(query) {
  return request({
    url: '/system/shiti_anjuan/listReport',
    method: 'get',
    params: query
  })
}

// 查询查看案卷信息详细
export function getAnjuan(id) {
  return request({
    url: '/system/shiti_anjuan/' + id,
    method: 'get'
  })
}

// 新增查看案卷信息
export function addAnjuan(data) {
  return request({
    url: '/system/shiti_anjuan',
    method: 'post',
    data: data
  })
}

// 修改查看案卷信息
export function updateAnjuan(data) {
  return request({
    url: '/system/shiti_anjuan',
    method: 'put',
    data: data
  })
}

// 删除查看案卷信息
export function delAnjuan(id) {
  return request({
    url: '/system/shiti_anjuan/' + id,
    method: 'delete'
  })
}

//返回最新一条记录的案卷编号End
export function selectLastZongJuanNo() {
  return request({
    url: '/system/shiti_anjuan/selectLastZongJuanNo',
    method: 'get'
  })
}

//返回最新一条记录的案卷编号End
export function getMaxFeileiNo(query) {
  return request({
    url: '/system/shiti_anjuan/getMaxFeileiNo',
    method: 'get',
    params: query
  })
}

// 查询查看案卷信息列表
export function listAnjuanScheme(query) {
  return request({
    url: '/system/shiti_anjuan/listAnjuanScheme',
    method: 'get',
    params: query
  })
}

// 导出总目录word
export function exportSchemeZong(data) {
  return request({
    url: '/system/shiti_anjuan/exportSchemeZong',
    method: 'post',
    data: data
  })
}

// 导出分目录word
export function exportSchemeFen(data) {
  return request({
    url: '/system/shiti_anjuan/exportSchemeFen',
    method: 'post',
    data: data
  })
}


